package com.story.core.util;

/**
 * @author Administrator
 * @decription 得到一个url的uri部分
 * @Date 2018-01-02 11:10
 */
public class UriUtil {

    public static String getUri(String url) {
        if(url.contains("://")) {
            String tempUrl = url.split("://")[1];
            return tempUrl.substring(tempUrl.split("/")[0].length(),tempUrl.length());
        } else {
            return url.substring(url.split("/")[0].length(),url.length());
        }
    }
}
